using net_work.Data.DTO.Cou;
using net_work.Data.Entity.Cou;

namespace net_work.IRepository.Cou;

public interface IEnrollmentRepository : IRepository<Enrollment>
{
    /// <summary>
    /// 插入选课
    /// </summary>
    /// <param name="enrollmentAddRequestBackend">插入选课</param>
    /// <returns>选课ID</returns>
    Task<long> InsertAsync(EnrollmentAddRequestBackend enrollmentAddRequestBackend);

    /// <summary>
    /// 更新选课信息
    /// </summary>
    /// <param name="enrollmentUpdateRequestBackend">更新选课信息</param>
    /// <returns>是否成功</returns>
    Task<bool> UpdateAsync(EnrollmentUpdateRequestBackend enrollmentUpdateRequestBackend);
}